import type { Metadata } from "next";
import Detail from "./Detail";

import { getResumeDetailWithoutGuards } from "@/service";

export const metadata: Metadata = {};

export default async function Home({ params, searchParams }) {
  const { id } = params;
  const { from } = searchParams;
  const res = await getResumeDetailWithoutGuards({ id });
  let detail: any = {};
  if (res.code === 200) {
    detail = res.data || { content: {} };
  }
  return <Detail detail={detail}></Detail>;
}
